﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Library.Base.Extensions
{
    [Serializable]
    public class Principal
    {
        public string Username { get; set; }

        public long AccountId { get; set; }

        public string PublicName { get; set; }

        public SecurityLevel Level { get; set; }

        public string IpAddress { get; set; }

        public long ExpriseTime { get; set; }
        //Dùng để chặn spam
        public long LastAction { get; set; }

        public string Code { get; set; }

        public string AccessToken { get; set; }
    }

    public enum SecurityLevel
    {
        Admin = 5,
        User = 1,
        Guest = 0
    }
}
